<?php
namespace yunj\control\field;

class Checkbox extends YunjField {

    private static $instance;

    public static function instance(){
        if (!self::$instance instanceof self){
            self::$instance = new self();
        }
        return self::$instance;
    }

    protected function defineExtraArgs(){
        return [
            'value' => [],           // 值（可选，如：['read']）
            'options' => [],         // 选项（例：['read'=>'阅读','write'=>'写作']）
            'disabled'=>false       // 禁用
        ];
    }

}